<?php if(!defined('MB_VERSION')) exit; ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0">
	<title>标题</title>
	<meta name="description" content="蘑菇博客">
	<meta name="author" content="mogublog">
	<link href="<?php mb_theme_url(); ?>/style.css" type="text/css" rel="stylesheet"/>
	<link href="<?php mb_theme_url(); ?>/SyntaxHihglighter/styles/shCore.css" type="text/css" rel="stylesheet"/>
	<link href="<?php mb_theme_url(); ?>/SyntaxHihglighter/styles/shThemeDefault.css" type="text/css" rel="stylesheet"/>
	<script type="text/javascript" src="<?php mb_theme_url(); ?>/SyntaxHihglighter/scripts/shCore.js"></script>
	<script type="text/javascript" src="<?php mb_theme_url(); ?>/SyntaxHihglighter/scripts/shAutoloader.js"></script>
	<script type="text/javascript" >
		function Search(){
			var key = document.getElementById('search-box').value;
			location.href = './search-'+key+'.html';
		}

		document.onkeydown = function(event){
			e = event ? event :(window.event ? window.event : null);
			if(e.keyCode==13){
				var key = document.getElementById('search-box').value;
				if(key.length > 0){
					Search();
				}
			}
		}
      </script>
</head>
<body>
<div id="flash-notice"></div>
<div class="header">
	<div class="wrap">
		<div class="user_img"><img src="<?php mb_theme_url('img/website.png'); ?>" width="80" height="80" alt="website icon"></div>
		<div class="blog_title">
			<a href="<?php bloginfo('url'); ?>">蘑菇博客</a>
		</div>
		<div class="write">
			<a href="<?php bloginfo('url'); ?>/admin">登录</a>
		</div>
		<div class="blog_motto"><?php bloginfo('desc'); ?></div>
	</div>
</div><!-- header -->
<div class="nav">
	<div class="wrap clearfix">
		<div class="search fr">
			<div id="cse-search-box" >
				<input id="search-box" name="q" type="text" placeholder="Search" value="">
				<button id="search-button" onclick="Search()" ></button>
			</div>
		</div>
		<ul>
			<li><a href="<?php bloginfo('url'); ?>" class='current'>首页</a></li>
			<li><a href="http://weibo.com/3141543492" >微博</a></li>
		</ul>
	</div>
</div><!-- nav -->
<div class="wrap clearfix">

<div class="left">


<?php while(have_posts()) : the_post(); ?>

<div class="con">
	<div class="tit clearfix">
		<span class="blog_icon" title="博客文章"></span>
		<a href="<?php the_url(); ?>"><?php the_title(); ?></a>	</div>
	<div class="text">
		<?php the_content(); ?>
	</div>
	<div class="info clearfix">
		<div class="fr">
			<span class="author">作者：<?php the_author(); ?></span>
			<span class="time">时间：<a href="date-2013-10.html"><?php the_date(); ?></a></span>
			<span class="edit"><a href="http://mogu.cn/html/admin/post-edit.php?id=gbglwn">编辑</a></span>
			<a class="comment" title="评论" href="<?php the_url(); ?>#comments">查看评论</a>
		</div>
	</div>
</div>


<?php endwhile; ?>


<div>
    <div class="pagination">
	<?php mb_page_nav(); ?>
	</div>
  </div>

</div>

<div class="right">
	<h3>标签</h3>
	<div class="tag">
		<?php mb_list_cats(); ?>
	</div>

<h3>最热文章</h3>
<div class="hot_blog">
  <a href="/blog/29/my-new-website">新的个人网站开张 robbinfan.com</a>
  <a href="/blog/31/why-love-shanghai">我为何喜欢上海不喜欢北京</a>
  <a href="/blog/38/orm-cache-sumup">Web应用的缓存设计模式</a>
  <a href="/blog/40/ruby-off-rails">Ruby社区应该去Rails化了</a>
  <a href="/blog/28/about-robbin">范凯的自我介绍</a>
</div>

<h3>最新评论</h3>
<ul class="comment ds-recent-comments" data-num-items="10" data-show-avatars="1" data-show-time="1" data-show-admin="1" data-excerpt-length="70">

</ul>

<h3>最新访客</h3>
<ul class="ds-recent-visitors"></ul>

<div class="rss clearfix">
	<a href="/rss">RSS订阅</a>
</div>
</div>
<!-- right content -->
</div>
<!-- content -->
<div class="footer">
	<a href="http://weibo.com/3141543492" class="weibo">Weibo</a>
	<a href="https://github.com/mogublog" class="github">Github</a>
	<a href="mailto:mogublog@126.com" class="mail">Email</a>
	<div class="powered-by">
		<a href="http://www.mogublog.cn" title="蘑菇博客">Powered by mogublog</a>
	</div>
	<a id="top"></a>
</div>
<!-- footer -->
<script src="<?php mb_theme_url(); ?>/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="<?php mb_theme_url(); ?>/js/mogublog.js" type="text/javascript"></script>
<script type="text/javascript">
	SyntaxHighlighter.autoloader(
		'js jscript javascript  theme/SyntaxHihglighter/scripts/shBrushJScript.js',
		'php theme/SyntaxHihglighter/scripts/shBrushPhp.js',
		'sh shell bash theme/SyntaxHihglighter/scripts/shBrushBash.js',
		'css theme/SyntaxHihglighter/scripts/shBrushCss.js',
		'sql theme/SyntaxHihglighter/scripts/shBrushSql.js'
	);
	SyntaxHighlighter.all();
</script>
<!--多说js加载开始，一个页面只需要加载一次 -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"mogushaoye"};
(function() {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';ds.async = true;
    ds.src = 'http://static.duoshuo.com/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!--多说js加载结束，一个页面只需要加载一次 -->
</body>
</html>